  -- Shade of Aran --
function spell0_16524(pUnit, Event) --@Arcane Explosion,n/a--
pUnit:FullCastSpellOnTarget(29973,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16524', 10000, 1)
end
function spell1_16524(pUnit, Event) --@Arcane Missiles,n/a--
pUnit:FullCastSpellOnTarget(29956,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16524', 747, 1)
end
function spell2_16524(pUnit, Event) --@Combustion,n/a--
pUnit:FullCastSpellOnTarget(29977,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16524', 10436, 1)
end
function spell3_16524(pUnit, Event) --@Conjure Water,n/a--
pUnit:FullCastSpellOnTarget(29975,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16524', 2000, 1)
end
function spell4_16524(pUnit, Event) --@Counterspell,n/a--
pUnit:FullCastSpellOnTarget(29961,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16524', 10354, 1)
end
function spell5_16524(pUnit, Event) --@Fire Mode Water Break Blocker,n/a--
pUnit:FullCastSpellOnTarget(39177,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16524', 817, 1)
end
function spell6_16524(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(29953,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16524', 2000, 1)
end
function spell7_16524(pUnit, Event) --@Flame Wreath,n/a--
pUnit:FullCastSpellOnTarget(30004,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16524', 5000, 1)
end
function spell8_16524(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(29954,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16524', 6000, 1)
end
function spell9_16524(pUnit, Event) --@Mana Potion,n/a--
pUnit:FullCastSpellOnTarget(32453,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16524', 500, 1)
end
function spell10_16524(pUnit, Event) --@Mass Polymorph,n/a--
pUnit:FullCastSpellOnTarget(29963,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16524', 12000, 1)
end
function spell11_16524(pUnit, Event) --@Mass Slow,n/a--
pUnit:FullCastSpellOnTarget(30035,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16524', 10407, 1)
end
function spell12_16524(pUnit, Event) --@Presence of Mind,n/a--
pUnit:FullCastSpellOnTarget(29976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16524', 3405, 1)
end
function spell13_16524(pUnit, Event) --@Pyroblast,n/a--
pUnit:FullCastSpellOnTarget(29978,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16524', 500, 1)
end
function spell14_16524(pUnit, Event) --@Summon Blizzard,n/a--
pUnit:FullCastSpellOnTarget(29969,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16524', 2000, 1)
end
function spell15_16524(pUnit, Event) --@Summon Water Elementals,n/a--
pUnit:FullCastSpellOnTarget(29962,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16524', 872, 1)
end
function spell16_16524(pUnit, Event) --@Summon Water Elementals,n/a--
pUnit:FullCastSpellOnTarget(37051,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16524', 748, 1)
end
function spell17_16524(pUnit, Event) --@Summon Water Elementals,n/a--
pUnit:FullCastSpellOnTarget(37052,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16524', 803, 1)
end
function spell18_16524(pUnit, Event) --@Summon Water Elementals,n/a--
pUnit:FullCastSpellOnTarget(37053,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16524', 751, 1)
end
function Sorts_16524(pUnit, Event)
choix_sorts_16524 = math.random(0, 18)
if choix_sorts_16524 == 0 then
pUnit:RegisterEvent('spell0_16524', 1, 1)
end
if choix_sorts_16524 == 1 then
pUnit:RegisterEvent('spell1_16524', 1, 1)
end
if choix_sorts_16524 == 2 then
pUnit:RegisterEvent('spell2_16524', 1, 1)
end
if choix_sorts_16524 == 3 then
pUnit:RegisterEvent('spell3_16524', 1, 1)
end
if choix_sorts_16524 == 4 then
pUnit:RegisterEvent('spell4_16524', 1, 1)
end
if choix_sorts_16524 == 5 then
pUnit:RegisterEvent('spell5_16524', 1, 1)
end
if choix_sorts_16524 == 6 then
pUnit:RegisterEvent('spell6_16524', 1, 1)
end
if choix_sorts_16524 == 7 then
pUnit:RegisterEvent('spell7_16524', 1, 1)
end
if choix_sorts_16524 == 8 then
pUnit:RegisterEvent('spell8_16524', 1, 1)
end
if choix_sorts_16524 == 9 then
pUnit:RegisterEvent('spell9_16524', 1, 1)
end
if choix_sorts_16524 == 10 then
pUnit:RegisterEvent('spell10_16524', 1, 1)
end
if choix_sorts_16524 == 11 then
pUnit:RegisterEvent('spell11_16524', 1, 1)
end
if choix_sorts_16524 == 12 then
pUnit:RegisterEvent('spell12_16524', 1, 1)
end
if choix_sorts_16524 == 13 then
pUnit:RegisterEvent('spell13_16524', 1, 1)
end
if choix_sorts_16524 == 14 then
pUnit:RegisterEvent('spell14_16524', 1, 1)
end
if choix_sorts_16524 == 15 then
pUnit:RegisterEvent('spell15_16524', 1, 1)
end
if choix_sorts_16524 == 16 then
pUnit:RegisterEvent('spell16_16524', 1, 1)
end
if choix_sorts_16524 == 17 then
pUnit:RegisterEvent('spell17_16524', 1, 1)
end
if choix_sorts_16524 == 18 then
pUnit:RegisterEvent('spell18_16524', 1, 1)
end
end
function mob16524_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16524', math.random(1500, 3000), 1)
end
function mob16524_Leave(pUnit, Event)
end
function mob16524_Kill(pUnit, Event)
end
function mob16524_Die(pUnit, Event)
pUnit:RemoveEvents();
end
RegisterUnitEvent(16524, 1, 'mob16524_Action')
RegisterUnitEvent(16524, 2, 'mob16524_Leave')
RegisterUnitEvent(16524, 3, 'mob16524_Kill')
RegisterUnitEvent(16524, 4, 'mob16524_Die')
